//
//  RecommendCell.swift
//  ListenFM
//
//  Created by 胡定锋Mac on 2017/8/8.
//  Copyright © 2017年 胡定锋. All rights reserved.
//

import UIKit


class RecommendCell: UICollectionViewCell {


    
    
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var imageView: UIImageView!
    
    //MARK:- 定义属性
    var model:hotfmSubModel?{
        didSet{
            guard let iconURL = URL(string : (model?.cover)!) else {return}
            imageView.kf.setImage(with: iconURL)
            
//            imageView.kf.setImage(with: NSURL.fileURL(withPath: (model?.cover)!))
            
            titleLabel.text = model?.title
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }

}
